import { _decorator, Component, Node ,instantiate,Prefab,Asset,resources} from 'cc';
const { ccclass, property } = _decorator;

@ccclass('GameManager')
export class GameManager extends Component {
     /** 背景 */
    @property({type:Node,tooltip:"背景"})
    Loading_bg:Node = null;

    @property(Node)
    canvase: Node = null;

    async onLoad() {
        resources.load("prefabs/LoadingPage", Prefab, (err, prefab) => { 
            if (err) {
                console.log(err);
            } else {
                console.log(prefab);
            }
        });
    }

    start() {

    }

    update(deltaTime: number) {
        
    }
}


